package com.utils;

import org.apache.http.client.methods.*;




public enum HttpRequestMethodEnum {
    // HttpGet请求
    get {
        @Override
        public HttpRequestBase createRequest(String url) { return new HttpGet(url); }
    },
    // HttpPost 请求
    post {
        @Override
        public HttpRequestBase createRequest(String url) { return new HttpPost(url); }
    },
    post_form {
        @Override
        public HttpRequestBase createRequest(String url) { return new HttpPost(url); }
    },
    // HttpPut 请求
    put {
        @Override
        public HttpRequestBase createRequest(String url) { return new HttpPut(url); }
    },
    // HttpDelete 请求
    delete {
        @Override
        public HttpRequestBase createRequest(String url) { return new HttpDelete(url); }
    };

    public HttpRequestBase createRequest(String url) { return null;}
    }

